package FIT::TypeAdapter::TestResult;

use FIT::Class;
use FIT::Document::Transformer;

extends 'FIT::TypeAdapter::Base';

# for test results, we don't care about expected, just actual
# so we annotate a little differently
sub paint {
    my ($cell, $actual, $expected, $result) = @_;
    transform { $result? Right: Wrong } $cell;
    $cell->replace_text($actual);
}

